package retrofit.boot.apache.autoconfigure;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by wulg on 2019/10/21
 * description:HttpClient配置
 */
@Data
@ConfigurationProperties(prefix = "retrofit.httpclient")
public class HttpClientProperties {

    private int defaultMaxPerRoute=25;//默认最大分路由，默认25

    private int maxTotal=100;//链接池最大数，默认100

    private int connectionRequestTimeout=1000;//从链接池获取链接的超时时间 默认1S

    private int connectTimeout=2*1000;//链接建立的超时时间 默认2S

    private int socketTimeout=10*1000;// 响应超时时间 默认10S

    private int idleTimeout=60*1000;// 响应超时时间 默认60S
}
